import React, {
    Component,
} from 'react';
import {
    StyleSheet,
    Text,
    View,
    Platform,
    Dimensions,
    TouchableOpacity,
    Image,
    Alert,
    FlatList,
    TextInput,
    Linking,
    DeviceEventEmitter
} from 'react-native';

import moment from 'moment';
import HttpUtils from '../../utils/HttpUtils';
import HttpUrls from '../../utils/HttpUrls';
import AndroidModule from "../../utils/AndroidConnent";
import { ToastToUser } from "../../utils/CustomToast";
import Constant from '../../utils/Constant'
import NoData from '../../utils/NoData'
import StatusBarSelf from '../../components/StatusBarSelf';
import { getImgUrl } from '../../utils/ComFunction'
import Loading from "../../utils/Loading";

const screenW = Dimensions.get('window').width;
let navigation

export default class CarList extends Component {
    constructor(props) {
        super(props);
        this.state = {

        }
    }

    render() {
        navigation = this.props.navigation;
        return (
            <View style={styles.container}>
                <StatusBarSelf />
                <View style={[styles.toplayout, { height: Constant.navigationBarHeight }]}>
                    <TouchableOpacity
                        style={styles.fanhuibox}
                        activeOpacity={0.8}
                        onPress={this.finish}>
                        <Image source={require('source/image/workCenter/home_icon.png')} style={styles.fanhui} />
                    </TouchableOpacity>



                    <View>
                    <TouchableOpacity
                        style={styles.addbox}
                        activeOpacity={0.8}
                        onPress={() => {
                            this.allowAddStaff()
                        }}>
                        <Image source={require('source/image/customer_add.png')} style={styles.add} />
                    </TouchableOpacity>
                    </View>

                </View>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F9F9F9',
    },
    toplayout: {
        width: '100%',
        flexDirection: 'row',
        alignItems: 'center',
        justifyContent: 'center',
        backgroundColor: '#ffffff'
    },
    fanhuibox: {
        position: 'absolute',
        width: 60,
        height: '100%',
        left: 0,
        flexDirection: 'row',
        alignItems: 'center',
        justifyContent: 'flex-start',
    },
    fanhui: {
        width: 18,
        height: 16,
        marginLeft: 18,
    },
})